/**
 * @description 路由参数
 * meta 可配置参数
 * @params {string} icon 页面icon
 * @params {boolean} keepAlive 是否缓存页面
 * @params {string} title 页面标题
*/
export default [
  {
    path: '*',
    redirect: '/login',
  },
  {
    path: '/login',
    name: 'login',
    component: () => import('@/views/login/index.js'),
    meta: {
      icon: '',
      keepAlive: true,
      title: 'login',
    },
  },
  {
    path: '/home',
    name: 'home',
    component: () => import('@/views/home/index.js'),
    meta: {
      icon: '',
      keepAlive: true,
      title: 'home',
    },
    children: [
      {
        path: '/gift',
        name: 'gift',
        component: () => import('@/views/gift/index.js'),
        meta: {
          icon: '',
          keepAlive: true,
          title: 'gift',
        },
      },
      {
        path: '/list',
        name: 'giftList',
        component: () => import('@/views/giftList/index.js'),
        meta: {
          icon: '',
          keepAlive: true,
          title: 'giftList',
        },
      },
      {
        path: '/gift-h5',
        name: 'gift-h5',
        component: () => import('@/views/gift/gift/gift-h5.vue'),
        meta: {
          icon: '',
          keepAlive: true,
          title: 'gift-h5',
        },
      },
      {
        path: '/helper',
        name: 'helper',
        component: () => import('@/views/gift/helper/index.vue'),
        meta: {
          icon: '',
          keepAlive: true,
          title: 'helper',
        },
      }
    ]
  }
];